package com.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Book implements Serializable {
    private Integer book_id;
    private String book_name;
    private String author;
    private String cover;
    private String press;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date press_date;
    private String edition;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date print_date;
    private String impression;
    private String isbn;
    private Integer word_num;
    private Integer page_num;
    private String sizes;
    private String paper;
    private String pack;
    private Float price;
    private Float dprice;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date create_date;
    private String editor_recommend;
    private String content_abstract;
    private String author_abstract;
    private String director;
    private String media_commentary;
    private Integer category_id;
    private Integer sale;
    private Integer stock;
}
